package com.example.tvidemo.mapper;

import com.example.tvidemo.entity.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleMapper {

    public List<Role> findAll();

    public Role findById(@Param("id") String id);

    public void addRole(Role role);

    public void updateRole(Role role);

    public void deleteRole(@Param("id") String id);

    public void authorizeRole(@Param("userId") String userId,@Param("roleId") String roleId);
}
